package cn.yiufung.qxquartz.utils;

import cn.yiufung.qxquartz.entity.SystemScheduledDO;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * 禁止并发
 * @author 姚锋
 * @createTime 2023年08月18日 15:23:00
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob{

    @Override
    public void doExecute(JobExecutionContext jobExecutionContext, SystemScheduledDO systemScheduledDO) throws Exception {
        JobInvokeUtil.invokeMethod(systemScheduledDO);
    }

}
